Java Deep Learning Essentials by Yusuke Sugomori

Java Deep Learning Essentials by Yusuke Sugomori
Author: Yusuke Sugomori [Sugomori, Yusuke]
Language: eng
Format: azw3, pdf
Publisher: Packt Publishing
Published: 2016-05-30

Here, the delta can be described as follows:

Now we have all the equations necessary for implementation, let's dive into the implementation. The package structure is as follows:

First, what we need to have is the rectifier. Like other activation functions, we implement it in ActivationFunction.java as ReLU:

public static double ReLU(double x) { if(x > 0) { return x; } else { return 0.; } }

Also, we define dReLU as the derivative of the rectifier:

public static double dReLU(double y) { if(y > 0) { return 1.; } else { return 0.; } }